package com.ruoyi.flowable.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.flowable.domain.WfDeployTaskCopy;
import org.flowable.bpmn.model.BpmnModel;

import java.util.List;

/**
 * 流程实例节点抄送对象Service接口
 *
 * @author ruoyi
 * @date 2024-03-31
 */
public interface IWfDeployTaskCopyService extends IService<WfDeployTaskCopy> {

    /**
     * 保存节点抄送对象
     *
     * @param deployId 部署ID
     * @param modelId  模型ID
     */
    void create(String deployId, BpmnModel bpmnModel, String modelId);


    /**
     * 按部署ID查找
     *
     * @param deployId
     * @return
     */
    List<WfDeployTaskCopy> selectByDeploy(String deployId);

    /**
     * 通过部署ID和节点ID查找抄送配置
     *
     * @param deploymentId 部署ID
     * @param activityId   节点ID
     * @return 抄送配置
     */
    WfDeployTaskCopy selectByDeployIdAndNodeKey(String deploymentId, String activityId);
}
